package com.ocpjp;

import com.ocpjp.model.User;

public class MyUser {

	public static void main(String[] args) {

		String usersArray[] = { "Lukasz, Jankowski, 1983",
				"Zenek, Smietana, 1999", "John, Warner, 1988" };
		Integer lenght = usersArray.length;

		User[] users = new User[lenght];

		for (int i = 0; i < lenght; i++) {
			users[i] = new User();
			users[i].parse(usersArray[i]);
			System.out.println(users[i].name + users[i].surname + users[i].dob);
		}

	}

}
